﻿//Copyright Notice:  ©2009 Microsoft Corporation.  All rights reserved.
using System;
using System.Data;
using System.Collections.ObjectModel;

namespace Microsoft.InformationSecurity.CISF.Security.AuthZServices
{
    /// <summary>
    /// SQL query object
    /// </summary>
    public class SqlQuery
    {
        #region Constructor
        /// <summary>
        /// Object container for SqlCommand parameter definitions.
        /// </summary>
        public SqlQuery() { }
        /// <summary>
        /// Object container for SqlCommand parameter definitions.
        /// </summary>
        /// <param name="commandText">The query to execute.</param>
        /// <param name="commandType">A CommandType object.</param>
        /// <param name="sqlParameters">A collection of SqlParameter objects.</param>
        public SqlQuery(string commandText, CommandType commandType, Collection<SqlParameter> sqlParameters)
        {
            this.CommandText = commandText;
            this.CommandType = commandType;
            this.SqlParameters = sqlParameters;
        }

        #endregion

        #region Properties

        public string CommandText
        {
            get;
            set;
        }

        public CommandType CommandType
        {
            get;
            set;
        }

        public Collection<SqlParameter> SqlParameters
        {
            set;
            get;
        }

        #endregion
    }
}
